<?php
/**
 * Created by PhpStorm.
 * User:chl
 * Date: 2017/5/5 0005
 * Time: 16:54
 */
namespace app\validate;
class ShareValidate{
    protected $rule = [
        'git_url'  => 'require',
    ];
    protected $message = [
        'link_url.require'  => '链接地址不能为空'
    ];

    public function linkValidate(){
        $validate['rule'] = $this->rule;
        $validate['message'] = $this->message;
        return $validate;
    }
}